<template>
  <div class="find-password container">
    <h2>找回密码</h2>
    <van-form @submit="onSubmit" validate-trigger="onChange">
      <FormEmail v-model="emailData" />
      <van-field
        v-model="password"
        type="password"
        name="密码"
        label="密码"
        placeholder="密码"
        :rules="[{ required: true, message: '请填写密码' }]"
      />
      <div class="submit">
        <van-button round block type="info" native-type="submit">
          提交
        </van-button>
      </div>
    </van-form>
    <div class="bottom-link">
      <nuxt-link to="/">返回首页</nuxt-link>
    </div>
  </div>
</template>
<script>
export default {
  layout: "notabbar",
  data() {
    return {
      emailData: {},
      password: ""
    };
  },
  methods: {
    onSubmit(val) {
      console.log(val);
    }
  }
};
</script>

<style lang="scss" scoped src="../login/index.scss"></style>
